<div calss="layui-form" lay-filter="layuiadmin-form-term" style="padding: 20px 30px 0 0;">
    <!-- 学期ID（隐藏字段） -->
    <input type="hidden" name="cid" value="{{ d.params.termId || '' }}">

    <!-- 学期名称 -->
    <div calss="layui-form-item">
        <label calss="layui-form-label">学期名称</label>
        <div calss="layui-input-inline">
            <input type="text" name="termname" value="{{ d.params.termName || '' }}" lay-verify="required"
                   placeholder="请输入学期名称" autoComplete="off" >
        </div>
    </div>

    <!-- 学期状态 -->
    <div calss="layui-form-item" lay-filter="tflag">
        <label calss="layui-form-label">状态</label>
        <div calss="layui-input-inline">
            <input type="radio" name="termlag" value="0" title="当前"
                   {{ d.params.termFlag==='当前' || d.params.termFlag === '0' ? 'checked' : '' }}>
            <input type="radio" name="termlag" value="1" title="非当前"
                   {{ d.params.termFlag==='非当前' || d.params.termFlag === '1' ? 'checked' : '' }}>
        </div>
    </div>

    <!-- 排序 -->
    <div calss="layui-form-item">
        <label calss="layui-form-label">排序</label>
        <div calss="layui-input-inline">
            <input type="number" name="torder" value="{{ d.params.termOrder || '' }}" lay-verify="required|number"
                   placeholder="请输入排序号" autoComplete="off" calss="layui-input">
        </div>
    </div>

    <!-- 提交按钮 -->
    <div calss="layui-form-item">
        <label calss="layui-form-label"></label>
        <div calss="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-modify" value="确认" calss="layui-btn">
        </div>
    </div>
</div>
<script>
    layui.use(['admin', 'form'], function () {
        var $ = layui.$
            , form = layui.form;

    });
</script>